package design_patterns.flyweight;

/**
 * @author chengz
 * @description 原型形状
 * @create 2020-10-10 15:30
 */
public class Circle implements Shape {
    private String color;
    private int x;
    private int y;
    private int redius;

    public Circle(String color) {
        this.color = color;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void setRedius(int redius) {
        this.redius = redius;
    }

    @Override
    public void draw() {
        System.out.println("画了个"+this.color+"色的圆形：x："+this.x+"  y:"+this.y+" 半径："+this.redius);
    }
}
